import request from '@/utils/request'
// const service1 = 'http://192.168.10.165:6180'
const service1 = window.lwConfig.services.auth
const service = window.lwConfig.services.wecom + '/lxqr'

// ************************* 数据评估平台 ***************************************
// 评估人列表
export function getPgrList(params) {
  return request({
    url: service1 + '/sjhg/report/assess/pgr/list',
    method: 'get',
    params,
  })
}

// 创建评估项目
export function saveAssess(data) {
  return request({
    url: service1 + '/sjhg/report/assess/save',
    method: 'post',
    data: data,
  })
}
// 评估项目提交(上传文件等)
export function submitAssess(data) {
  return request({
    url: service1 + '/sjhg/report/assess/submit',
    method: 'post',
    data: data,
  })
}

// 用户侧评估项目列表
export function getAssessList(params) {
  return request({
    url: service1 + '/sjhg/report/assess/list',
    method: 'get',
    params,
  })
}
// 用户侧评估项目排序列表
export function getAssessSortList(params) {
  return request({
    url: service1 + '/sjhg/report/assess/sort/list',
    method: 'get',
    params,
  })
}

// 评估项目详情
export function getAssessDetail(params) {
  return request({
    url: service1 + '/sjhg/report/assess/assess/detail',
    method: 'get',
    params,
  })
}
// 评估项目填报项详情 （上传处详情）
export function getAssessOptionDetail(params) {
  return request({
    url: service1 + '/sjhg/report/assess/options/detail',
    method: 'get',
    params,
  })
}

// 获取出具报告
export function getAssessReportOne(params) {
  return request({
    url: service1 + `/sjhg/report/assess/report/one?assessId=${params.assessId}`,
    method: 'get',
    params,
  })
}
// 获取上传评审报告
export function getAssessReportTwo(params) {
  return request({
    url: service1 + `/sjhg/report/assess/report/two?assessId=${params.assessId}`,
    method: 'get',
    params,
  })
}
// 获取上传评审结论
export function getAssessReportThree(params) {
  return request({
    url: service1 + `/sjhg/report/assess/report/three?assessId=${params.assessId}`,
    method: 'get',
    params,
  })
}
// 查看评估结果
export function getAssessScore(params) {
  return request({
    url: service1 + '/sjhg/report/assess/score',
    method: 'get',
    params,
  })
}
// 评估项目签署协议
export function getAssessSign(params) {
  return request({
    url: service1 + '/sjhg/report/assess/sign',
    method: 'get',
    params,
  })
}

// 用户侧首页统计
export function getAssessTj() {
  return request({
    url: service1 + '/sjhg/report/assess/tj',
    method: 'get',
  })
}



//确认工作计划  1.1
export function getAssessCPlan(params) {
  return request({
    url: service1 + '/sjhg/report/assess/confrimPlan',
    method: 'get',
    params,
  })
}

//访谈评估详情  1.1
export function getAssessInterviewDetail(params) {
  return request({
    url: service1 + '/sjhg/report/assess/interview/detail',
    method: 'get',
    params,
  })
}